<?php

namespace App\Http\Service;

class RedisService
{
	private static $_obj;

	public static function getInstance()
	{
		if (!self::$_obj instanceof self) {
			self::$_obj = new self();
		}
		return self::$_obj;
	}

	public function __construct()
	{
		$redis = new \Redis();
		return $redis->connect('127.0.0.1', 6379);
	}
}